package com.css.fxfzypg.modules.baseData.repository;

import com.css.fxfzypg.modules.baseData.dto.PeoDTO;
import com.css.fxfzypg.modules.baseData.queryParams.PeoQueryParams;
import com.css.fxfzypg.modules.baseData.entity.PeoEntity;

import java.util.List;
import java.util.Map;

/**
 * @author y1fan
 * @create 2022-08-11 14:57
 */
public interface PeoRepository {



    PeoEntity findPeoById(String dataPeoId);

    void updatePeo(PeoDTO peoDTO);

    Map<String, Object> getAllPeoByParams(PeoQueryParams queryParams, int curPage, int pageSize);

    void deletePeo(List<String> list);

    PeoEntity findPeoByProAndCityAndPre(String province, String city, String prefecture);

    void importExcel(PeoEntity peoEntity);

    void save(PeoEntity peoEntity1);

    Integer countByCounty(String province, String city, String county);
    Integer countByCity(String province, String city);
    Integer countByProvince(String province);

    Integer countByProvinceAndYear(String provinceName, String taskYear);
}
